function dateChange(_birthday) {
    var birthday = new Date(_birthday);
    var y = birthday.getFullYear();
    var m = (birthday.getMonth()+1)<10?"0"+(birthday.getMonth()+1):birthday.getMonth()+1;
    var d = birthday.getDate()<10?"0"+birthday.getDate():birthday.getDate();
    var day = y+"-"+m+"-"+d;
    return day;
}
function hmDateChange(_date) {
    var date = new Date(_date);
    var h = date.getHours()<10?"0"+date.getHours():date.getHours();
    var m = date.getMinutes()<10?"0"+date.getMinutes():date.getMinutes();
    //var s = date.getSeconds()<10?"0"+date.getMinutes():date.getMinutes();
    var time = h+":"+m;
    return time;
}
function allDateChange(_date) {
    var date = new Date(_date);
    var y = date.getFullYear();
    var M = (date.getMonth()+1)<10?"0"+(date.getMonth()+1):date.getMonth()+1;
    var d = date.getDate()<10?"0"+date.getDate():date.getDate();
    var h = date.getHours()<10?"0"+date.getHours():date.getHours();
    var m = date.getMinutes()<10?"0"+date.getMinutes():date.getMinutes();
    var s = date.getSeconds()<10?"0"+date.getMinutes():date.getMinutes();
    var allTime = y+"-"+M+"-"+d+" "+h+":"+m+":"+s;
    return allTime;

}
function timeToTimestamp(time) {
    var date = new Date(time);
    return date.getTime();
}